package sources;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Europa
 * @create 2020-05-04 22:06
 */
public class ConcurrentHashMapTest {

    public static void main(String[] args) {
        for (int i = 0; i < 256; i++) {
            System.out.println((char)i);
        }
        ConcurrentHashMapTest test = new ConcurrentHashMapTest();
        ConcurrentHashMap<Integer, Character> map = new ConcurrentHashMap<>();
        test.put(map);

    }

    public void put(Map<Integer, Character> map) {
        for (int i = 65; i < 85; i++) {
            char c = (char) i;
            map.put(i - 65, c);
        }
        for (int i = 0; i < map.size(); i++) {
            map.get(i);
        }
    }


}
